package com.product.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

@Setter
@Getter
@Data
@TableName("orderitem")
public class OrderItem implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "order_item_id", type = IdType.AUTO)
    private Long orderItemId;
    @TableField(value = "product_id")
    private Long productId;
    @TableField(value = "order_id")
    private Long orderId;
    @TableField(value = "state")
    private String state;
    @TableField(value = "num")
    private Long num;
    @TableField(value = "deleted")
    @TableLogic
    private String deleted;
}
